import type { Meta, StoryObj } from '@storybook/vue3-vite';

import { fn } from 'storybook/test';

import MindmapViewer from './index.vue';


const meta = {
  title: 'text/MindmapViewer',
  component: MindmapViewer,
  tags: ['autodocs'],
  argTypes: {
    value: {
      control: 'text',
      description: '初始值'
    }
  },
  args: {
    value: ''
  },

} satisfies Meta<typeof MindmapViewer>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Basic: Story = {
  name: '基础用法',
  args: {
    ...meta.args,
    value: `# markmap

- beautiful
- useful
- easy
- interactive
`
  },
}
